import request from '@/utils/request'

export function getHeaderUserInfoApi() {
    return request({
        url: '/web/api/index/header/nav/info',
        method: 'get'
    })
}
export function getNoticeListApi(params) {
    return request({
        url: '/web/api/system/notice/list',
        method: 'get',
        params
    })
}
export function getWindowListApi(params) {
    return request({
        url: '/web/api/user/box/list',
        method: 'get',
        params
    })
}
// export function getChatWindowListApi(params) {
//     return request({
//         url: '/web/api/user/box/list',
//         method: 'get',
//         params
//     })
// }
export function searchChatRecordListApi(params) {
    return request({
        url: '/web/api/user/chat/record/list',
        method: 'get',
        params
    })
}

export function searchHistoryListApi(params) {
    return request({
        url: '/web/user/search/history/list',
        method: 'get',
        params
    })
}
export function searchWantListApi(params) {
    return request({
        url: '/web/user/search/want/list',
        method: 'get',
        params
    })
}
export function deleteSearchHistoryApi(params) {
    return request({
        url: '/web/user/search/history/delete',
        method: 'post',
        params
    })
}
export function clearHistoryListApi(params) {
    return request({
        url: '/web/user/search/history/clear',
        method: 'post',
        params
    })
}
export function searchListApi(data) {
    return request({
        url: '/web/search/index',
        method: 'get',
        data
    })
}
export function deleteChatWindowApi(params) {
    return request({
        url: '/web/api/user/chat/box/delete',
        method: 'post',
        params
    })
}
export function topChatWindowApi(params) {
    return request({
        url: '/web/api/user/chat/box/top',
        method: 'post',
        params
    })
}